package sbc.group1.lab1.alt;

import java.rmi.RemoteException;

import sbc.group1.lab1.common.CarBody;

public class CarBodyProducer extends AbstractProducer {

	public CarBodyProducer(int id, int partsToProduce, CarService cs, double relativeDefects) {
		super(id, partsToProduce, cs, relativeDefects);
	}

	@Override
	protected void createAndAddPart(CarService cs) throws RemoteException,
			InterruptedException {
		cs.addCarBody(new CarBody(this, randomIsDefect()));
	}

}
